import request from '@/utils/request';


export default {
	// 科室查询
	selectequip(pages,sizes) {
		return request({
			url: `http://localhost/api/dept/equips/equip?pages=${pages}&sizes=${sizes}`,
			method: 'post'
		});
	},
	//条件查询
	selecteq(pagess,sizess,eqName) {
		return request({
			url: `http://localhost/api/dept/equips/eqdep?pages=${pagess}&sizes=${sizess}&eqName=${eqName}`,
			method: 'post'
		});
	},
	//查询仪器使用记录
	selectequiprecords(eqid) {
		return request({
			url: `http://localhost/api/dept/equip/equiprecords?eqid=${eqid}`,
			method: 'post'
		});
	},
	//添加设备
	addeq(dpc_id,eq_name,eq_price,eq_number,eq_saplings,eq_state) {
		return request({
			url: `http://localhost/api/dept/equips/add?dpc_id=${dpc_id}&eq_name=${eq_name}&eq_price=${eq_price}&eq_number=${eq_number}&eq_saplings=${eq_saplings}&eq_state=${eq_state}`,
			method: 'post'
		});
	}


}







